package com.xli.sso.current.menu.entity.mapper;

import com.xli.sso.current.menu.entity.CurrentMenuVO;
import com.xli.ui.module.framemodule.entity.FrameModule;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;


@Mapper
public interface ICurrentMenuMapper {

    ICurrentMenuMapper INSTANCE = Mappers.getMapper(ICurrentMenuMapper.class);

    @Mappings({
            @Mapping(source = "path", target = "path"),
            @Mapping(source = "name", target = "name"),
            @Mapping(source = "icon", target = "icon"),
            @Mapping(source = "component", target = "component")})
    CurrentMenuVO toVO(FrameModule frameModule);

}
